/*
 * File:   hcconstnode.h
 * Author: benoybose
 *
 * Created on May 13, 2012, 10:59 PM
 */

#ifndef HCCONSTNODE_H
#define	HCCONSTNODE_H

#include "hccodenode.h"
#include "hcstring.h"

extern const int CONST_INTEGER;
extern const int CONST_FLOAT;
extern const int CONST_CHAR;
extern const int CONST_BOOL;
extern const int CONST_STRING;

typedef struct _hcconstnode
{
    int node_type;
    xml_serialize to_xml;
    int const_type;
    hcstring* const_val;

} hcconstnode;

hcconstnode* hcconstnode_create(hcstring* val, int type);
char* hcconstnode_to_xml();

#endif	/* HCCONSTNODE_H */

